﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace project_soft.PL
{
    public partial class DeletEmployee : Form
    {
        public DeletEmployee()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            BL.Manager manager = new BL.Manager();
            if (manager.Delet_Worker(textBox1.Text))
            {
                MessageBox.Show("تم مسح العميل");
            }
            else {
                MessageBox.Show("لا يوجد هذا العميل");
            }

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            new PL.ManagerForm().ShowDialog();
        }
    }
}
